<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:v="urn:schemas-microsoft-com:vml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <title>Google Maps JavaScript API Example: LocalSearch Control</title>
    <script src="http://ditu.google.cn/?file=api&amp;v=2.x&amp;key=ABQIAAAAPTwhF4vlVXrO7ZGOjA9sOxTqQ5WtUwE0C8FR1hRk-yj3qFOmhhR6esbxCerNyfzApAoTJGfOHzcKCQ&sensor=false" 
      type="text/javascript"></script>
    <script type="text/javascript">
      function initialize() {
        var map;
        if (GBrowserIsCompatible()) {
          var mapOptions = {
            googleBarOptions : {
              style : "new",
              adsOptions : {
                client: "partner-google-maps-api",
                channel: "41301183",
                adsafe: "high",
                language: "zh-CN"
              }
            }
          }
          map = new GMap2(document.getElementById("map_canvas"), mapOptions);
          map.setCenter(new GLatLng(39.917, 116.397), 10);
          map.setUIToDefault();
          map.enableGoogleBar();
        }
      }
    </script>
  </head>
  <body onload="initialize()" onunload="GUnload()">
    <div id="map_canvas" style="width: 500px; height: 500px"></div>
  </body>
</html>

